package com.cheng.dao;

import com.cheng.pojo.Location;
import com.cheng.pojo.Road;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface UavMapper {

    public List<Road> getRoad(Map m);

    public List<Road> getRoadCount(Map m);

    public List<Location> getLocation(Map m);

    public int insertLocation(Location location);
    public int updateLocation(Location location);
    public int deleteLocation(int id);

    public int insertRoad(Road road);
    public int updateRoad(Road road);
    public int deleteRoad(int id);

}
